import { LayaPoolName } from "../../LayaPoolName";
import Game from "../../Game";
import MonsterSkillVO from "../../../db/vo/MonsterSkillVO";

export default class SkillEffect {

    private static _poolIndex = [];


    public reset() {
        // SkillEffect._poolIndex.map((p) => {
        //     Laya.Pool.clearBySign(p);
        // });

        // SkillEffect._poolIndex = [];
    }




    public static getShieldEffect(resPath: string): Laya.ShuriKenParticle3D {
        // let effect: Laya.ShuriKenParticle3D = Laya.Pool.getItem(LayaPoolName.MONSTER_SKILL_SHIELD);
        // if (effect == null) {
        let effect = Laya.Sprite3D.instantiate(Laya.loader.getRes(resPath)) as Laya.ShuriKenParticle3D;
        Game.monsterResClones.push(effect);
        // SkillEffect._poolIndex.push(LayaPoolName.MONSTER_SKILL_SHIELD);

        return effect;

    }
}

